MigratableResource.fromJson constructor
MigratableResource.fromJson(
- Object? j
Implementation
factory MigratableResource.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return MigratableResource(
mlEngineModelVersion: switch (json['mlEngineModelVersion']) {
null => null,
Object $1 => MigratableResource_MlEngineModelVersion.fromJson($1),
},
automlModel: switch (json['automlModel']) {
null => null,
Object $1 => MigratableResource_AutomlModel.fromJson($1),
},
automlDataset: switch (json['automlDataset']) {
null => null,
Object $1 => MigratableResource_AutomlDataset.fromJson($1),
},
dataLabelingDataset: switch (json['dataLabelingDataset']) {
null => null,
Object $1 => MigratableResource_DataLabelingDataset.fromJson($1),
},
lastMigrateTime: switch (json['lastMigrateTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
lastUpdateTime: switch (json['lastUpdateTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
);
}