Input$CurrencyInput.fromJson constructor
Input$CurrencyInput.fromJson(
- Map<String, dynamic> data
)
Implementation
factory Input$CurrencyInput.fromJson(Map<String, dynamic> data) {
final result$data = <String, dynamic>{};
final l$name = data['name'];
result$data['name'] = (l$name as String);
if (data.containsKey('code')) {
final l$code = data['code'];
result$data['code'] = (l$code as String?);
}
if (data.containsKey('symbol')) {
final l$symbol = data['symbol'];
result$data['symbol'] = (l$symbol as String?);
}
if (data.containsKey('flagSquare')) {
final l$flagSquare = data['flagSquare'];
result$data['flagSquare'] = l$flagSquare == null
? null
: Input$PictureInput.fromJson((l$flagSquare as Map<String, dynamic>));
}
if (data.containsKey('flagWide')) {
final l$flagWide = data['flagWide'];
result$data['flagWide'] = l$flagWide == null
? null
: Input$PictureInput.fromJson((l$flagWide as Map<String, dynamic>));
}
if (data.containsKey('iconFlag')) {
final l$iconFlag = data['iconFlag'];
result$data['iconFlag'] = (l$iconFlag as String?);
}
return Input$CurrencyInput._(result$data);
}