ListBuildsOutput.fromJson constructor

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

Implementation

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