ImportDataConfig.fromJson constructor
ImportDataConfig.fromJson(
- Object? j
Implementation
factory ImportDataConfig.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ImportDataConfig(
gcsSource: switch (json['gcsSource']) {
null => null,
Object $1 => GcsSource.fromJson($1),
},
dataItemLabels: switch (json['dataItemLabels']) {
null => {},
Map<String, Object?> $1 => {
for (final e in $1.entries)
decodeString(e.key): decodeString(e.value),
},
_ => throw const FormatException('"dataItemLabels" is not an object'),
},
annotationLabels: switch (json['annotationLabels']) {
null => {},
Map<String, Object?> $1 => {
for (final e in $1.entries)
decodeString(e.key): decodeString(e.value),
},
_ => throw const FormatException('"annotationLabels" is not an object'),
},
importSchemaUri: switch (json['importSchemaUri']) {
null => '',
Object $1 => decodeString($1),
},
);
}