EnvironmentResponse.fromJson constructor

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

Implementation

factory EnvironmentResponse.fromJson(Map<String, dynamic> json) {
  return EnvironmentResponse(
    error: json['Error'] != null
        ? EnvironmentError.fromJson(json['Error'] as Map<String, dynamic>)
        : null,
    variables: (json['Variables'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}