CollectionFeaturedProduct.fromJson constructor

CollectionFeaturedProduct.fromJson(
  1. Map json_
)

Implementation

CollectionFeaturedProduct.fromJson(core.Map json_)
    : this(
        offerId: json_.containsKey('offerId')
            ? json_['offerId'] as core.String
            : null,
        x: json_.containsKey('x')
            ? (json_['x'] as core.num).toDouble()
            : null,
        y: json_.containsKey('y')
            ? (json_['y'] as core.num).toDouble()
            : null,
      );