ListBackendEnvironmentsResult.fromJson constructor

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

Implementation

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