ListEnvironmentsResult.fromJson constructor

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

Implementation

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