Call.fromJson constructor

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

Parse from a json

Implementation

factory Call.fromJson(Map<String, dynamic> json) => Call(
  id: json['id'],
  userId: json['user_id'],
  isOutgoing: json['is_outgoing'],
  isVideo: json['is_video'],
  state: CallState.fromJson(json['state']),
);