ResponseMetaData.fromJson constructor

ResponseMetaData.fromJson(
  1. Map json_
)

Implementation

ResponseMetaData.fromJson(core.Map json_)
    : this(
        currencyCode: json_.containsKey('currencyCode')
            ? json_['currencyCode'] as core.String
            : null,
        dataLossFromOtherRow: json_.containsKey('dataLossFromOtherRow')
            ? json_['dataLossFromOtherRow'] as core.bool
            : null,
        emptyReason: json_.containsKey('emptyReason')
            ? json_['emptyReason'] as core.String
            : null,
        samplingMetadatas: json_.containsKey('samplingMetadatas')
            ? (json_['samplingMetadatas'] as core.List)
                .map((value) => SamplingMetadata.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        schemaRestrictionResponse:
            json_.containsKey('schemaRestrictionResponse')
                ? SchemaRestrictionResponse.fromJson(
                    json_['schemaRestrictionResponse']
                        as core.Map<core.String, core.dynamic>)
                : null,
        subjectToThresholding: json_.containsKey('subjectToThresholding')
            ? json_['subjectToThresholding'] as core.bool
            : null,
        timeZone: json_.containsKey('timeZone')
            ? json_['timeZone'] as core.String
            : null,
      );