@override Map<String, dynamic> toJson() => <String, dynamic>{ 'format': format.toJson(), 'width': width, 'height': height, 'file': file.toJson(), '@type': constructor, };