toJson method
Used to encode the attributes for this asset file in a corresponding Asset's Contents.json file.
Implementation
@override
Map<String, dynamic> toJson() => <String, String>{
'filename': filename,
'idiom': idiom,
'scale': '${scale}x',
'size': sizeName
};