toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  if (width != null) 'width': width,
  if (height != null) 'height': height,
  if (maxWidth != null) 'max_width': maxWidth,
  if (maxHeight != null) 'max_height': maxHeight,
  'expand': expand,
  if (aspectRatio != null) 'aspect_ratio': aspectRatio,
};