toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{
'idiom': idiom,
'filename': filename,
'scale': scale,
};
if (appearances != null) {
map['appearances'] = appearances;
}
return map;
}