toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (height != null) {
    _json[r'height'] = height;
  }
  if (width != null) {
    _json[r'width'] = width;
  }
  return _json;
}