FinalizedDeal.fromJson constructor

FinalizedDeal.fromJson(
  1. Map json_
)

Implementation

FinalizedDeal.fromJson(core.Map json_)
    : this(
        deal: json_.containsKey('deal')
            ? Deal.fromJson(
                json_['deal'] as core.Map<core.String, core.dynamic>)
            : null,
        dealPausingInfo: json_.containsKey('dealPausingInfo')
            ? DealPausingInfo.fromJson(json_['dealPausingInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        dealServingStatus: json_.containsKey('dealServingStatus')
            ? json_['dealServingStatus'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        readyToServe: json_.containsKey('readyToServe')
            ? json_['readyToServe'] as core.bool
            : null,
        rtbMetrics: json_.containsKey('rtbMetrics')
            ? RtbMetrics.fromJson(
                json_['rtbMetrics'] as core.Map<core.String, core.dynamic>)
            : null,
      );