CreatedIssues.fromJson constructor

CreatedIssues.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory CreatedIssues.fromJson(Map<String, Object?> json) {
  return CreatedIssues(
    errors: (json[r'errors'] as List<Object?>?)
            ?.map((i) => BulkOperationErrorResult.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    issues: (json[r'issues'] as List<Object?>?)
            ?.map((i) =>
                CreatedIssue.fromJson(i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}