JobMetadata.fromJson constructor
JobMetadata.fromJson(
- Map json_
Implementation
JobMetadata.fromJson(core.Map json_)
: this(
bigTableDetails: json_.containsKey('bigTableDetails')
? (json_['bigTableDetails'] as core.List)
.map((value) => BigTableIODetails.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
bigqueryDetails: json_.containsKey('bigqueryDetails')
? (json_['bigqueryDetails'] as core.List)
.map((value) => BigQueryIODetails.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
datastoreDetails: json_.containsKey('datastoreDetails')
? (json_['datastoreDetails'] as core.List)
.map((value) => DatastoreIODetails.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
fileDetails: json_.containsKey('fileDetails')
? (json_['fileDetails'] as core.List)
.map((value) => FileIODetails.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
pubsubDetails: json_.containsKey('pubsubDetails')
? (json_['pubsubDetails'] as core.List)
.map((value) => PubSubIODetails.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
sdkVersion: json_.containsKey('sdkVersion')
? SdkVersion.fromJson(
json_['sdkVersion'] as core.Map<core.String, core.dynamic>)
: null,
spannerDetails: json_.containsKey('spannerDetails')
? (json_['spannerDetails'] as core.List)
.map((value) => SpannerIODetails.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
userDisplayProperties: json_.containsKey('userDisplayProperties')
? (json_['userDisplayProperties']
as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
);