toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() => {
  if (publisherModelName != null) 'publisherModelName': publisherModelName,
  if (huggingFaceModelId != null) 'huggingFaceModelId': huggingFaceModelId,
  if (customModel != null) 'customModel': customModel!.toJson(),
  'destination': destination,
  if (modelConfig != null) 'modelConfig': modelConfig!.toJson(),
  if (endpointConfig != null) 'endpointConfig': endpointConfig!.toJson(),
  if (deployConfig != null) 'deployConfig': deployConfig!.toJson(),
};