toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() {
  return {
    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(),
  };
}