DescribeEnvironmentsResult.fromJson constructor

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

Implementation

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