RealtimeData.fromJson constructor

RealtimeData.fromJson(
  1. Map json_
)

Implementation

RealtimeData.fromJson(core.Map json_)
    : this(
        columnHeaders: json_.containsKey('columnHeaders')
            ? (json_['columnHeaders'] as core.List)
                .map((value) => RealtimeDataColumnHeaders.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        profileInfo: json_.containsKey('profileInfo')
            ? RealtimeDataProfileInfo.fromJson(
                json_['profileInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        query: json_.containsKey('query')
            ? RealtimeDataQuery.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) => value as core.String)
                    .toList())
                .toList()
            : 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,
      );