BannerMessage.fromJson constructor

BannerMessage.fromJson(
  1. Map _json
)

Implementation

BannerMessage.fromJson(core.Map _json)
    : this(
        action: _json.containsKey('action')
            ? Action.fromJson(
                _json['action'] as core.Map<core.String, core.dynamic>)
            : null,
        backgroundHexColor: _json.containsKey('backgroundHexColor')
            ? _json['backgroundHexColor'] as core.String
            : null,
        body: _json.containsKey('body')
            ? Text.fromJson(
                _json['body'] as core.Map<core.String, core.dynamic>)
            : null,
        imageUrl: _json.containsKey('imageUrl')
            ? _json['imageUrl'] as core.String
            : null,
        title: _json.containsKey('title')
            ? Text.fromJson(
                _json['title'] as core.Map<core.String, core.dynamic>)
            : null,
      );