toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (roles != null) {
    json[r'Roles'] = roles;
  }
  if (parentRoles != null) {
    json[r'ParentRoles'] = parentRoles;
  }
  if (effectiveRoles != null) {
    json[r'EffectiveRoles'] = effectiveRoles;
  }
  if (effectivePermissions != null) {
    json[r'EffectivePermissions'] = effectivePermissions;
  }
  return json;
}