Error.fromJson constructor Null safety
Implementation
Error.fromJson(Map<String, dynamic> json)
: reason = EnumToString.fromString(ResponseErrorReason.values,
json['reason'].toUpperCase().replaceAll("-", "_"))!,
message = json['message'];