CompetitiveVisibility.fromJson constructor

CompetitiveVisibility.fromJson(
  1. Map json_
)

Implementation

CompetitiveVisibility.fromJson(core.Map json_)
    : this(
        adsOrganicRatio: json_.containsKey('adsOrganicRatio')
            ? (json_['adsOrganicRatio'] as core.num).toDouble()
            : null,
        categoryBenchmarkVisibilityTrend:
            json_.containsKey('categoryBenchmarkVisibilityTrend')
                ? (json_['categoryBenchmarkVisibilityTrend'] as core.num)
                    .toDouble()
                : null,
        categoryId: json_.containsKey('categoryId')
            ? json_['categoryId'] as core.String
            : null,
        countryCode: json_.containsKey('countryCode')
            ? json_['countryCode'] as core.String
            : null,
        date: json_.containsKey('date')
            ? Date.fromJson(
                json_['date'] as core.Map<core.String, core.dynamic>)
            : null,
        domain: json_.containsKey('domain')
            ? json_['domain'] as core.String
            : null,
        higherPositionRate: json_.containsKey('higherPositionRate')
            ? (json_['higherPositionRate'] as core.num).toDouble()
            : null,
        isYourDomain: json_.containsKey('isYourDomain')
            ? json_['isYourDomain'] as core.bool
            : null,
        pageOverlapRate: json_.containsKey('pageOverlapRate')
            ? (json_['pageOverlapRate'] as core.num).toDouble()
            : null,
        rank: json_.containsKey('rank') ? json_['rank'] as core.String : null,
        relativeVisibility: json_.containsKey('relativeVisibility')
            ? (json_['relativeVisibility'] as core.num).toDouble()
            : null,
        trafficSource: json_.containsKey('trafficSource')
            ? json_['trafficSource'] as core.String
            : null,
        yourDomainVisibilityTrend:
            json_.containsKey('yourDomainVisibilityTrend')
                ? (json_['yourDomainVisibilityTrend'] as core.num).toDouble()
                : null,
      );