Image.fromJson constructor

Image.fromJson(
  1. Map json_
)

Implementation

Image.fromJson(core.Map json_)
    : this(
        contentUrl: json_.containsKey('contentUrl')
            ? json_['contentUrl'] as core.String
            : null,
        imageProperties: json_.containsKey('imageProperties')
            ? ImageProperties.fromJson(json_['imageProperties']
                as core.Map<core.String, core.dynamic>)
            : null,
        placeholder: json_.containsKey('placeholder')
            ? Placeholder.fromJson(
                json_['placeholder'] as core.Map<core.String, core.dynamic>)
            : null,
        sourceUrl: json_.containsKey('sourceUrl')
            ? json_['sourceUrl'] as core.String
            : null,
      );