// To parse this JSON data, do // // final chatUserImageModel = chatUserImageModelFromJson(jsonString); import 'dart:convert'; List chatUserImageModelFromJson(String str) => List.from(json.decode(str).map((x) => ChatUserImageModel.fromJson(x))); String chatUserImageModelToJson(List data) => json.encode(List.from(data.map((x) => x.toJson()))); class ChatUserImageModel { ChatUserImageModel({ this.email, this.profilePicture, this.mobileNumber, }); String? email; String? profilePicture; String? mobileNumber; factory ChatUserImageModel.fromJson(Map json) => ChatUserImageModel( email: json["email"] == null ? null : json["email"], profilePicture: json["profilePicture"] == null ? null : json["profilePicture"], mobileNumber: json["mobileNumber"] == null ? null : json["mobileNumber"], ); Map toJson() => { "email": email == null ? null : email, "profilePicture": profilePicture == null ? null : profilePicture, "mobileNumber": mobileNumber == null ? null : mobileNumber, }; }