EndpointProperties.fromJson constructor
EndpointProperties.fromJson(
- Map<String, dynamic> json
)
Implementation
factory EndpointProperties.fromJson(Map<String, dynamic> json) {
return EndpointProperties(
creationTime: timeStampFromJson(json['CreationTime']),
currentInferenceUnits: json['CurrentInferenceUnits'] as int?,
desiredInferenceUnits: json['DesiredInferenceUnits'] as int?,
endpointArn: json['EndpointArn'] as String?,
lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
message: json['Message'] as String?,
modelArn: json['ModelArn'] as String?,
status: (json['Status'] as String?)?.toEndpointStatus(),
);
}