Thumbnail.fromJson constructor

Thumbnail.fromJson(
  1. Map _json
)

Implementation

Thumbnail.fromJson(core.Map _json)
    : this(
        contentType: _json.containsKey('contentType')
            ? _json['contentType'] as core.String
            : null,
        data: _json.containsKey('data') ? _json['data'] as core.String : null,
        heightPx: _json.containsKey('heightPx')
            ? _json['heightPx'] as core.int
            : null,
        widthPx: _json.containsKey('widthPx')
            ? _json['widthPx'] as core.int
            : null,
      );