FriendGroupEntity.fromJson constructor
FriendGroupEntity.fromJson(
- dynamic data
Implementation
FriendGroupEntity.fromJson(data) {
Map<String, dynamic> json =
data is Map ? data.cast<String, dynamic>() : jsonDecode(data);
if (json['name'] != null) name = json['name'];
if (json['friendCount'] != null) friendCount = json['friendCount'];
if (json['friendIDList'] != null)
friendIDList = json['friendIDList']?.cast<String>();
}