toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (access != null) 'access': access!,
      if (condition != null) 'condition': condition!.toJson(),
      if (memberships != null)
        'memberships': memberships!
            .map((key, item) => core.MapEntry(key, item.toJson())),
      if (relevance != null) 'relevance': relevance!,
      if (role != null) 'role': role!,
      if (rolePermission != null) 'rolePermission': rolePermission!,
      if (rolePermissionRelevance != null)
        'rolePermissionRelevance': rolePermissionRelevance!,
    };