Login.fromJson constructor Null safety
Implementation
Login.fromJson(Map<String, dynamic> json) {
result = json['result'] ?? '';
if (result == 'ok') {
token = Token.fromJson(json['token']!);
} else {
throw MangadexServerException(json);
}
}