DescribeEnvironmentMembershipsResult.fromJson constructor

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

Implementation

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