ErrorResponse.fromJson constructor

ErrorResponse.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ErrorResponse.fromJson(Map<String, Object?> json) {
  return ErrorResponse(
    errorMessage: json[r'errorMessage'] as String?,
    i18nErrorMessage: json[r'i18nErrorMessage'] != null
        ? I18nErrorMessage.fromJson(
            json[r'i18nErrorMessage']! as Map<String, Object?>)
        : null,
  );
}