ModelMonitor.fromJson constructor
ModelMonitor.fromJson(
- Object? j
Implementation
factory ModelMonitor.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ModelMonitor(
tabularObjective: switch (json['tabularObjective']) {
null => null,
Object $1 => ModelMonitoringObjectiveSpec_TabularObjective.fromJson($1),
},
name: switch (json['name']) {
null => '',
Object $1 => decodeString($1),
},
displayName: switch (json['displayName']) {
null => '',
Object $1 => decodeString($1),
},
modelMonitoringTarget: switch (json['modelMonitoringTarget']) {
null => null,
Object $1 => ModelMonitor_ModelMonitoringTarget.fromJson($1),
},
trainingDataset: switch (json['trainingDataset']) {
null => null,
Object $1 => ModelMonitoringInput.fromJson($1),
},
notificationSpec: switch (json['notificationSpec']) {
null => null,
Object $1 => ModelMonitoringNotificationSpec.fromJson($1),
},
outputSpec: switch (json['outputSpec']) {
null => null,
Object $1 => ModelMonitoringOutputSpec.fromJson($1),
},
explanationSpec: switch (json['explanationSpec']) {
null => null,
Object $1 => ExplanationSpec.fromJson($1),
},
modelMonitoringSchema: switch (json['modelMonitoringSchema']) {
null => null,
Object $1 => ModelMonitoringSchema.fromJson($1),
},
encryptionSpec: switch (json['encryptionSpec']) {
null => null,
Object $1 => EncryptionSpec.fromJson($1),
},
createTime: switch (json['createTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
updateTime: switch (json['updateTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
satisfiesPzs: switch (json['satisfiesPzs']) {
null => false,
Object $1 => decodeBool($1),
},
satisfiesPzi: switch (json['satisfiesPzi']) {
null => false,
Object $1 => decodeBool($1),
},
);
}