V2TimGroupAttributeChanged.fromJson constructor
V2TimGroupAttributeChanged.fromJson(
- Map json
Implementation
V2TimGroupAttributeChanged.fromJson(Map json) {
json = Utils.formatJson(json);
groupID = json["group_id"] ?? '';
final groupChangeAttributeList = jsonDecode(json["json_group_attribute_array"]);
groupAttributeMap = {};
if (groupChangeAttributeList is List && groupChangeAttributeList.isNotEmpty) {
groupAttributeMap = Tools.jsonList2Map<String>(groupChangeAttributeList.whereType<Map<String, dynamic>>().toList(), 'group_attribute_key', 'group_attribute_value');
}
}