EndpointInput.fromJson constructor

EndpointInput.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory EndpointInput.fromJson(Map<String, dynamic> json) {
  return EndpointInput(
    endpointName: json['EndpointName'] as String,
    localPath: json['LocalPath'] as String,
    endTimeOffset: json['EndTimeOffset'] as String?,
    featuresAttribute: json['FeaturesAttribute'] as String?,
    inferenceAttribute: json['InferenceAttribute'] as String?,
    probabilityAttribute: json['ProbabilityAttribute'] as String?,
    probabilityThresholdAttribute:
        json['ProbabilityThresholdAttribute'] as double?,
    s3DataDistributionType: (json['S3DataDistributionType'] as String?)
        ?.toProcessingS3DataDistributionType(),
    s3InputMode: (json['S3InputMode'] as String?)?.toProcessingS3InputMode(),
    startTimeOffset: json['StartTimeOffset'] as String?,
  );
}