PricePerBuyer.fromJson constructor

PricePerBuyer.fromJson(
  1. Map _json
)

Implementation

PricePerBuyer.fromJson(core.Map _json)
    : this(
        advertiserIds: _json.containsKey('advertiserIds')
            ? (_json['advertiserIds'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        buyer: _json.containsKey('buyer')
            ? Buyer.fromJson(
                _json['buyer'] as core.Map<core.String, core.dynamic>)
            : null,
        price: _json.containsKey('price')
            ? Price.fromJson(
                _json['price'] as core.Map<core.String, core.dynamic>)
            : null,
      );