toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final height = this.height;
  final left = this.left;
  final top = this.top;
  final width = this.width;
  return {
    if (height != null) 'Height': height,
    if (left != null) 'Left': left,
    if (top != null) 'Top': top,
    if (width != null) 'Width': width,
  };
}