ServingContext.fromJson constructor

ServingContext.fromJson(
  1. Map json_
)

Implementation

ServingContext.fromJson(core.Map json_)
    : this(
        all: json_.containsKey('all') ? json_['all'] as core.String : null,
        appType: json_.containsKey('appType')
            ? AppContext.fromJson(
                json_['appType'] as core.Map<core.String, core.dynamic>)
            : null,
        auctionType: json_.containsKey('auctionType')
            ? AuctionContext.fromJson(
                json_['auctionType'] as core.Map<core.String, core.dynamic>)
            : null,
        location: json_.containsKey('location')
            ? LocationContext.fromJson(
                json_['location'] as core.Map<core.String, core.dynamic>)
            : null,
        platform: json_.containsKey('platform')
            ? PlatformContext.fromJson(
                json_['platform'] as core.Map<core.String, core.dynamic>)
            : null,
        securityType: json_.containsKey('securityType')
            ? SecurityContext.fromJson(
                json_['securityType'] as core.Map<core.String, core.dynamic>)
            : null,
      );