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,
      );