Capture.fromJson constructor
Creates a new instance from a JSON map.
Implementation
factory Capture.fromJson(Map<String, dynamic> json) {
return Capture(
photo: json['photo'] == null
? null
: Photo.fromJson(Map<String, dynamic>.from(json['photo'])),
video: json['video'] == null
? null
: Recording.fromJson(Map<String, dynamic>.from(json['video'])),
);
}