McfData.fromJson constructor

McfData.fromJson(
  1. Map json_
)

Implementation

McfData.fromJson(core.Map json_)
    : this(
        columnHeaders: json_.containsKey('columnHeaders')
            ? (json_['columnHeaders'] as core.List)
                .map((value) => McfDataColumnHeaders.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        containsSampledData: json_.containsKey('containsSampledData')
            ? json_['containsSampledData'] as core.bool
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        itemsPerPage: json_.containsKey('itemsPerPage')
            ? json_['itemsPerPage'] as core.int
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        nextLink: json_.containsKey('nextLink')
            ? json_['nextLink'] as core.String
            : null,
        previousLink: json_.containsKey('previousLink')
            ? json_['previousLink'] as core.String
            : null,
        profileInfo: json_.containsKey('profileInfo')
            ? McfDataProfileInfo.fromJson(
                json_['profileInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        query: json_.containsKey('query')
            ? McfDataQuery.fromJson(
                json_['query'] as core.Map<core.String, core.dynamic>)
            : null,
        rows: json_.containsKey('rows')
            ? (json_['rows'] as core.List)
                .map((value) => (value as core.List)
                    .map((value) => McfDataRows.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList())
                .toList()
            : null,
        sampleSize: json_.containsKey('sampleSize')
            ? json_['sampleSize'] as core.String
            : null,
        sampleSpace: json_.containsKey('sampleSpace')
            ? json_['sampleSpace'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        totalResults: json_.containsKey('totalResults')
            ? json_['totalResults'] as core.int
            : null,
        totalsForAllResults: json_.containsKey('totalsForAllResults')
            ? (json_['totalsForAllResults']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );