AdSlot.fromJson constructor

AdSlot.fromJson(
  1. Map json_
)

Implementation

AdSlot.fromJson(core.Map json_)
    : this(
        comment: json_.containsKey('comment')
            ? json_['comment'] as core.String
            : null,
        compatibility: json_.containsKey('compatibility')
            ? json_['compatibility'] as core.String
            : null,
        height: json_.containsKey('height')
            ? json_['height'] as core.String
            : null,
        linkedPlacementId: json_.containsKey('linkedPlacementId')
            ? json_['linkedPlacementId'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        paymentSourceType: json_.containsKey('paymentSourceType')
            ? json_['paymentSourceType'] as core.String
            : null,
        primary: json_.containsKey('primary')
            ? json_['primary'] as core.bool
            : null,
        width:
            json_.containsKey('width') ? json_['width'] as core.String : null,
      );