fromJson static method

ErrorInfo? fromJson(
  1. Object? json
)

Implementation

static ErrorInfo? fromJson(Object? json) {
  if (json is! Map) return null;
  return ErrorInfo(
    code: json['code'] as String,
    httpStatus: json['httpStatus'] as int?,
    message: json['message'] as String?,
    ambiguous: json['ambiguous'] == true,
  );
}