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,
      );