toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (left != null) {
    json[r'left'] = left;
  }
  if (top != null) {
    json[r'top'] = top;
  }
  if (width != null) {
    json[r'width'] = width;
  }
  if (height != null) {
    json[r'height'] = height;
  }
  if (multiline != null) {
    json[r'multiline'] = multiline;
  }
  if (labelPosition != null) {
    json[r'labelPosition'] = labelPosition;
  }
  if (readOnly != null) {
    json[r'readOnly'] = readOnly;
  }
  if (defaultValue != null) {
    json[r'defaultValue'] = defaultValue;
  }
  if (key != null) {
    json[r'key'] = key;
  }
  return json;
}