AuthDataResponse.fromJson constructor

AuthDataResponse.fromJson(
  1. dynamic json
)

Implementation

factory AuthDataResponse.fromJson(dynamic json) {
  if (json is! Map<String, dynamic>) {
    throw FormatException('Expected Map, got ${json.runtimeType}');
  }
  return AuthDataResponse(
    jwt: json['jwt'] as String,
    imeiUrl: json['imeiUrl'] as String,
  );
}