Asset.fromJSON constructor

Asset.fromJSON(
  1. Map<String, dynamic> json,
  2. String accessToken
)

Implementation

factory Asset.fromJSON(Map<String, dynamic> json, String accessToken) {
  return Asset(
      id: json['id'],
      title: json['title'],
      video: Video.fromJSON(json['video']),
      accessToken: accessToken);
}