ImageAsset.fromJson constructor

ImageAsset.fromJson(
  1. Map json_
)

Implementation

ImageAsset.fromJson(core.Map json_)
    : this(
        fileSize: json_.containsKey('fileSize')
            ? json_['fileSize'] as core.String
            : null,
        fullSize: json_.containsKey('fullSize')
            ? Dimensions.fromJson(
                json_['fullSize'] as core.Map<core.String, core.dynamic>)
            : null,
        mimeType: json_.containsKey('mimeType')
            ? json_['mimeType'] as core.String
            : null,
      );