ExternalModel.fromJson constructor

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

Implementation

factory ExternalModel.fromJson(Map<String, dynamic> json) {
  return ExternalModel(
    arn: json['arn'] as String?,
    createdTime: json['createdTime'] as String?,
    inputConfiguration: json['inputConfiguration'] != null
        ? ModelInputConfiguration.fromJson(
            json['inputConfiguration'] as Map<String, dynamic>)
        : null,
    invokeModelEndpointRoleArn: json['invokeModelEndpointRoleArn'] as String?,
    lastUpdatedTime: json['lastUpdatedTime'] as String?,
    modelEndpoint: json['modelEndpoint'] as String?,
    modelEndpointStatus:
        (json['modelEndpointStatus'] as String?)?.toModelEndpointStatus(),
    modelSource: (json['modelSource'] as String?)?.toModelSource(),
    outputConfiguration: json['outputConfiguration'] != null
        ? ModelOutputConfiguration.fromJson(
            json['outputConfiguration'] as Map<String, dynamic>)
        : null,
  );
}