BatchGetCommitsOutput.fromJson constructor
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(),
);
}