toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (historyId != null) 'historyId': historyId!,
      if (id != null) 'id': id!,
      if (messages != null) 'messages': messages!,
      if (snippet != null) 'snippet': snippet!,
    };