fromJson static method

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

Implementation

static LiveStream fromJson(Map<String, dynamic> json) {
  return LiveStream(
    userId: json['user_id'] ?? '',
    type: json['type'] ?? '',
    url: json['url'] ?? '',
  );
}