Call.fromJson constructor

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

Parses a Call from TDLib JSON.

Implementation

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