BatchGetCommitsOutput.fromJson constructor

BatchGetCommitsOutput.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory BatchGetCommitsOutput.fromJson(Map<String, dynamic> json) {
  return BatchGetCommitsOutput(
    commits: (json['commits'] as List?)
        ?.whereNotNull()
        .map((e) => Commit.fromJson(e as Map<String, dynamic>))
        .toList(),
    errors: (json['errors'] as List?)
        ?.whereNotNull()
        .map((e) => BatchGetCommitsError.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}