fromJson static method

VideoData fromJson(
  1. Map json
)
override

Implementation

static VideoData fromJson(Map json) {
  return VideoData(
    albumId: json['albumId'] as String?,
    assetId: json['assetId'] as String,
    uri: json['uri'] as String?,
    durationMs: int.tryParse(json['duration'] as String) ?? 0,
    imageData: json['imageData'] as Uint8List?,
  );
}