SpacePermissionRequest.fromJson constructor

SpacePermissionRequest.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory SpacePermissionRequest.fromJson(Map<String, Object?> json) {
  return SpacePermissionRequest(
    subject: PermissionSubject.fromJson(
        json[r'subject'] as Map<String, Object?>? ?? const {}),
    operation: SpacePermissionRequestOperation.fromJson(
        json[r'operation'] as Map<String, Object?>? ?? const {}),
    links: json[r'_links'] != null
        ? GenericLinks.fromJson(json[r'_links']! as Map<String, Object?>)
        : null,
  );
}