toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  if (scale != null) {
    map['scale'] = scale;
  }
  map['width'] = width;
  map['height'] = height;
  map['x'] = x;
  map['y'] = y;
  return map;
}