toJson method
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
'size': size,
'idiom': idiom,
'filename': filename,
'scale': scale,
if (platform != null) 'platform': platform,
if (appearances != null) 'appearances': appearances!.map((e) => e.toJson()).toList(),
};
}