CallLogModel.fromJson constructor

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

Converts a JSON object into a CallLogModel instance.

Implementation

factory CallLogModel.fromJson(Map<String, dynamic> json) => CallLogModel(
      data: json["data"] == null
          ? []
          : List<CallLogData>.from(
              json["data"]!.map((x) => CallLogData.fromJson(x))),
      totalPages: json["total_pages"],
    );