JMReceiveGroupAdminApprovalEvent.fromJson constructor

JMReceiveGroupAdminApprovalEvent.fromJson(
  1. Map json
)

Implementation

JMReceiveGroupAdminApprovalEvent.fromJson(Map<dynamic, dynamic> json)
  : isAgree = json['isAgree'],
    applyEventId = json['applyEventId'] ,
    groupId = json['groupId'],
    groupAdmin =  JMUserInfo.fromJson(json['groupAdmin']) {
      List<dynamic> userJsons = json['users'];
      users = userJsons.map( (userJson) {
        return JMUserInfo.fromJson(userJson);
      }).toList();
    }