Error.fromJson constructor

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

Implementation

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