ChatHistory.fromJson constructor

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

Implementation

ChatHistory.fromJson(Map<String, dynamic> json){
  id = json['id'];
  consultationId = json['consultation_id'];
  data = json['data'] != null ? List.from(json['data']).map((e)=>Data.fromJson(e)).toList() : null ;
  createdAt = json['created_at'];
  updatedAt = null;
}