toJson method
Implementation
Map<String, dynamic> toJson() {
final result$data = <String, dynamic>{};
final l$name = name;
result$data['name'] = l$name;
if (_$data.containsKey('code')) {
final l$code = code;
result$data['code'] = l$code;
}
if (_$data.containsKey('symbol')) {
final l$symbol = symbol;
result$data['symbol'] = l$symbol;
}
if (_$data.containsKey('flagSquare')) {
final l$flagSquare = flagSquare;
result$data['flagSquare'] = l$flagSquare?.toJson();
}
if (_$data.containsKey('flagWide')) {
final l$flagWide = flagWide;
result$data['flagWide'] = l$flagWide?.toJson();
}
if (_$data.containsKey('iconFlag')) {
final l$iconFlag = iconFlag;
result$data['iconFlag'] = l$iconFlag;
}
return result$data;
}