FlutterTwilioCall.fromMap constructor

FlutterTwilioCall.fromMap(
  1. Map<String, dynamic> data
)

Implementation

factory FlutterTwilioCall.fromMap(Map<String, dynamic> data) {
  return FlutterTwilioCall(
    id: data["id"] ?? "",
    fromDisplayName: data["fromDisplayName"] ?? "",
    toDisplayName: data["toDisplayName"] ?? "",
    outgoing: data["outgoing"] ?? false,
    mute: data["mute"] ?? false,
    speaker: data["speaker"] ?? false,
    status: FlutterTwilio.getEventType(data["status"] ?? ""),
    toPhotoURL: data["toPhotoURL"] ?? "",
    to: data["to"] ?? "",
  );
}