asJson property

Map<String, dynamic> get asJson

Implementation

Map<String, dynamic> get asJson => {
      'field': field,
      if (label != null) 'label': label,
      'new_text': newText,
      'new_value': newValue,
      'old_text': oldText,
      'old_value': oldValue,
      if (options != null) 'options': options,
      'type_id': typeId,
    };