Image.fromJson constructor

Image.fromJson(
  1. Map json_
)

Implementation

Image.fromJson(core.Map json_)
    : this(
        contentDescription: json_.containsKey('contentDescription')
            ? LocalizedString.fromJson(json_['contentDescription']
                as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        sourceUri: json_.containsKey('sourceUri')
            ? ImageUri.fromJson(
                json_['sourceUri'] as core.Map<core.String, core.dynamic>)
            : null,
      );