encode static method
Implementation
static Map<String, dynamic> encode(UserGroup value) {
Map<String, dynamic> entityAsMap = {
"groupId" : value.groupId,
"groupName" : value.groupName,
"groupsHierarchy" : value.groupsHierarchy.map((x0) => Group.encode(x0)).toList(),
"userId" : value.userId,
"login" : value.login,
"name" : value.name,
"email" : value.email,
"phone" : value.phone,
"patientId" : value.patientId,
"healthcarePartyId" : value.healthcarePartyId,
"deviceId" : value.deviceId,
"nameOfParentOfTopmostGroupInHierarchy" : value.nameOfParentOfTopmostGroupInHierarchy
};
return entityAsMap;
}