encode static method
Implementation
static Map<String, dynamic> encode(Group value) {
Map<String, dynamic> entityAsMap = {
"id" : value.id,
"rev" : value.rev,
"deletionDate" : value.deletionDate,
"tags" : value.tags.map((x0) => CodeStub.encode(x0)).toList(),
"name" : value.name,
"password" : value.password,
"servers" : value.servers?.map((x0) => x0).toList(),
"superAdmin" : value.superAdmin,
"properties" : value.properties.map((x0) => DecryptedPropertyStub.encode(x0)).toList(),
"defaultUserRoles" : value.defaultUserRoles.map((k0, v0) => MapEntry(UserType.encode(k0), v0.map((x1) => x1).toList())),
"operationTokens" : value.operationTokens.map((k0, v0) => MapEntry(k0, OperationToken.encode(v0))),
"sharedEntities" : value.sharedEntities.map((k0, v0) => MapEntry(k0, v0)),
"minimumKrakenVersion" : value.minimumKrakenVersion,
"minimumAuthenticationClassForElevatedPrivileges" : AuthenticationClass.encode(value.minimumAuthenticationClassForElevatedPrivileges),
"superGroup" : value.superGroup,
"applicationId" : value.applicationId
};
return entityAsMap;
}