GoogleCloudMlV1Model.fromJson constructor
GoogleCloudMlV1Model.fromJson(
- Map json_
Implementation
GoogleCloudMlV1Model.fromJson(core.Map json_)
: this(
defaultVersion: json_.containsKey('defaultVersion')
? GoogleCloudMlV1Version.fromJson(json_['defaultVersion']
as core.Map<core.String, core.dynamic>)
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
labels: json_.containsKey('labels')
? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
onlinePredictionConsoleLogging:
json_.containsKey('onlinePredictionConsoleLogging')
? json_['onlinePredictionConsoleLogging'] as core.bool
: null,
onlinePredictionLogging: json_.containsKey('onlinePredictionLogging')
? json_['onlinePredictionLogging'] as core.bool
: null,
regions: json_.containsKey('regions')
? (json_['regions'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);