toJson method

  1. @override
Map<String, dynamic> toJson()
override

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>{
  'size': sizeName,
  'idiom': 'mac',
  'filename': filename,
  'scale': '${scale}x',
};