SpacePermissionOperation.fromJson constructor

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

Implementation

factory SpacePermissionOperation.fromJson(Map<String, Object?> json) {
  return SpacePermissionOperation(
    key: json[r'key'] != null
        ? SpacePermissionOperationKey.fromValue(json[r'key']! as String)
        : null,
    targetType: json[r'targetType'] != null
        ? SpacePermissionOperationTargetType.fromValue(
            json[r'targetType']! as String)
        : null,
  );
}