toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final endpointName = this.endpointName;
  final localPath = this.localPath;
  final endTimeOffset = this.endTimeOffset;
  final featuresAttribute = this.featuresAttribute;
  final inferenceAttribute = this.inferenceAttribute;
  final probabilityAttribute = this.probabilityAttribute;
  final probabilityThresholdAttribute = this.probabilityThresholdAttribute;
  final s3DataDistributionType = this.s3DataDistributionType;
  final s3InputMode = this.s3InputMode;
  final startTimeOffset = this.startTimeOffset;
  return {
    'EndpointName': endpointName,
    'LocalPath': localPath,
    if (endTimeOffset != null) 'EndTimeOffset': endTimeOffset,
    if (featuresAttribute != null) 'FeaturesAttribute': featuresAttribute,
    if (inferenceAttribute != null) 'InferenceAttribute': inferenceAttribute,
    if (probabilityAttribute != null)
      'ProbabilityAttribute': probabilityAttribute,
    if (probabilityThresholdAttribute != null)
      'ProbabilityThresholdAttribute': probabilityThresholdAttribute,
    if (s3DataDistributionType != null)
      'S3DataDistributionType': s3DataDistributionType.toValue(),
    if (s3InputMode != null) 'S3InputMode': s3InputMode.toValue(),
    if (startTimeOffset != null) 'StartTimeOffset': startTimeOffset,
  };
}