HtmlContent.fromJson constructor

HtmlContent.fromJson(
  1. Map _json
)

Implementation

HtmlContent.fromJson(core.Map _json)
    : this(
        height:
            _json.containsKey('height') ? _json['height'] as core.int : null,
        snippet: _json.containsKey('snippet')
            ? _json['snippet'] as core.String
            : null,
        width: _json.containsKey('width') ? _json['width'] as core.int : null,
      );