factory EnvironmentError.fromJson(Map<String, dynamic> json) { return EnvironmentError( errorCode: json['ErrorCode'] as String?, message: json['Message'] as String?, ); }