PromotionImage.fromJson constructor

PromotionImage.fromJson(
  1. Map json_
)

Implementation

PromotionImage.fromJson(core.Map json_)
    : this(
        height:
            json_.containsKey('height') ? json_['height'] as core.int : null,
        source: json_.containsKey('source')
            ? json_['source'] as core.String
            : null,
        width: json_.containsKey('width') ? json_['width'] as core.int : null,
      );