# ImageRef.fromJson constructor

ImageRef.fromJson(

1. Map<String, dynamic> source

)

Creates ImageRef from json representation with upgrading serialized reference to a strong one

## Implementation

    factory ImageRef.fromJson(Map<String, dynamic> source) {
      String uniqueId = source["uniqueId"];
      using((Arena arena) {
        Pointer<Utf8> pSource = uniqueId.toNativeUtf8(allocator: arena);
        _nativeUpgradeSerializedReference(pSource);
      });
      return ImageRef._(uniqueId);
    }