toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final containers = this.containers;
  final supportedContentTypes = this.supportedContentTypes;
  final supportedResponseMIMETypes = this.supportedResponseMIMETypes;
  final supportedRealtimeInferenceInstanceTypes =
      this.supportedRealtimeInferenceInstanceTypes;
  final supportedTransformInstanceTypes =
      this.supportedTransformInstanceTypes;
  return {
    'Containers': containers,
    'SupportedContentTypes': supportedContentTypes,
    'SupportedResponseMIMETypes': supportedResponseMIMETypes,
    if (supportedRealtimeInferenceInstanceTypes != null)
      'SupportedRealtimeInferenceInstanceTypes':
          supportedRealtimeInferenceInstanceTypes
              .map((e) => e.toValue())
              .toList(),
    if (supportedTransformInstanceTypes != null)
      'SupportedTransformInstanceTypes':
          supportedTransformInstanceTypes.map((e) => e.toValue()).toList(),
  };
}