toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'type': type,
    if (subtype != null) 'subtype': subtype,
    if (className != null) 'className': className,
    if (value != null) 'value': value,
    if (unserializableValue != null)
      'unserializableValue': unserializableValue!.toJson(),
    if (description != null) 'description': description,
    if (deepSerializedValue != null)
      'deepSerializedValue': deepSerializedValue!.toJson(),
    if (objectId != null) 'objectId': objectId!.toJson(),
    if (preview != null) 'preview': preview!.toJson(),
    if (customPreview != null) 'customPreview': customPreview!.toJson(),
  };
}