PromotionBodyLines.fromJson constructor

PromotionBodyLines.fromJson(
  1. Map json_
)

Implementation

PromotionBodyLines.fromJson(core.Map json_)
    : this(
        htmlTitle: json_.containsKey('htmlTitle')
            ? json_['htmlTitle'] as core.String
            : null,
        link: json_.containsKey('link') ? json_['link'] as core.String : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
      );