Image.fromJson constructor

Image.fromJson(
  1. Map _json
)

Implementation

Image.fromJson(core.Map _json)
    : this(
        alpha: _json.containsKey('alpha')
            ? (_json['alpha'] as core.num).toDouble()
            : null,
        resolution: _json.containsKey('resolution')
            ? NormalizedCoordinate.fromJson(
                _json['resolution'] as core.Map<core.String, core.dynamic>)
            : null,
        uri: _json.containsKey('uri') ? _json['uri'] as core.String : null,
      );