RPTask({required this.identifier, this.closeAfterFinished = false}) { _registerFromJsonFunctions(); }