MessageCall.fromJson constructor

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

Parse from a json

Implementation

factory MessageCall.fromJson(Map<String, dynamic> json) => MessageCall(
      isVideo: json['is_video'],
      discardReason: CallDiscardReason.fromJson(json['discard_reason']),
      duration: json['duration'],
    );