NativeFile.fromJson constructor

NativeFile.fromJson(
  1. Map<String, dynamic> json
)

Constructs a NativeFile from the provided json.

Implementation

factory NativeFile.fromJson(Map<String, dynamic> json) =>
    _$NativeFileFromJson(json)
      ..dimensions.value = _SizeExtension.fromJson(json['dimensions'])
      ..bytes.value = _Uint8ListExtension.fromJson(json['bytes']);