ApiDataRow.fromJson constructor

ApiDataRow.fromJson(
  1. Map json_
)

Implementation

ApiDataRow.fromJson(core.Map json_)
    : this(
        clicks: json_.containsKey('clicks')
            ? (json_['clicks'] as core.num).toDouble()
            : null,
        ctr: json_.containsKey('ctr')
            ? (json_['ctr'] as core.num).toDouble()
            : null,
        impressions: json_.containsKey('impressions')
            ? (json_['impressions'] as core.num).toDouble()
            : null,
        keys: json_.containsKey('keys')
            ? (json_['keys'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        position: json_.containsKey('position')
            ? (json_['position'] as core.num).toDouble()
            : null,
      );