toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  var json = super.toJson();
  if (tenantId != null) {
    json['tenantId'] = tenantId!.toJson();
  }
  if (userGroupId != null) {
    json['userGroupId'] = userGroupId!.toJson();
  }
  json['roleId'] = roleId.toJson();
  if (entityGroupId != null) {
    json['entityGroupId'] = entityGroupId!.toJson();
  }
  if (entityGroupType != null) {
    json['entityGroupType'] = entityGroupType!.toShortString();
  }
  json['isPublic'] = isPublic;
  return json;
}