SharedFile.fromJson constructor

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

Implementation

SharedFile.fromJson(Map<String, dynamic> json)
    : value = json['value'] ?? json['path'],
      thumbnail = json['thumbnail'],
      duration = json['duration'],
      type = SharedMediaType.values[json['type']];