SnapshotImage.fromJson constructor

SnapshotImage.fromJson(
  1. Map json_
)

Implementation

SnapshotImage.fromJson(core.Map json_)
    : this(
        height:
            json_.containsKey('height') ? json_['height'] as core.int : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        mimeType: json_.containsKey('mime_type')
            ? json_['mime_type'] as core.String
            : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
        width: json_.containsKey('width') ? json_['width'] as core.int : null,
      );