BatchGetBuildsOutput.fromJson constructor

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

Implementation

factory BatchGetBuildsOutput.fromJson(Map<String, dynamic> json) {
  return BatchGetBuildsOutput(
    builds: (json['builds'] as List?)
        ?.whereNotNull()
        .map((e) => Build.fromJson(e as Map<String, dynamic>))
        .toList(),
    buildsNotFound: (json['buildsNotFound'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}