|  | 
|  | 1 | +/* AUTOMATICALLY GENERATED CODE DO NOT MODIFY */ | 
|  | 2 | +/*   To generate run: "serverpod generate"    */ | 
|  | 3 | + | 
|  | 4 | +// ignore_for_file: implementation_imports | 
|  | 5 | +// ignore_for_file: library_private_types_in_public_api | 
|  | 6 | +// ignore_for_file: non_constant_identifier_names | 
|  | 7 | +// ignore_for_file: public_member_api_docs | 
|  | 8 | +// ignore_for_file: type_literal_in_constant_pattern | 
|  | 9 | +// ignore_for_file: use_super_parameters | 
|  | 10 | +// ignore_for_file: invalid_use_of_internal_member | 
|  | 11 | + | 
|  | 12 | +// ignore_for_file: no_leading_underscores_for_library_prefixes | 
|  | 13 | +import 'package:serverpod_client/serverpod_client.dart' as _i1; | 
|  | 14 | + | 
|  | 15 | +/// Indicates that the user account registration request was denied, | 
|  | 16 | +/// due to incomplete information or missing approval. | 
|  | 17 | +abstract class UserAccountRegistrationDeniedException | 
|  | 18 | +    implements _i1.SerializableException, _i1.SerializableModel { | 
|  | 19 | +  UserAccountRegistrationDeniedException._({required this.message}); | 
|  | 20 | + | 
|  | 21 | +  factory UserAccountRegistrationDeniedException({required String message}) = | 
|  | 22 | +      _UserAccountRegistrationDeniedExceptionImpl; | 
|  | 23 | + | 
|  | 24 | +  factory UserAccountRegistrationDeniedException.fromJson( | 
|  | 25 | +      Map<String, dynamic> jsonSerialization) { | 
|  | 26 | +    return UserAccountRegistrationDeniedException( | 
|  | 27 | +        message: jsonSerialization['message'] as String); | 
|  | 28 | +  } | 
|  | 29 | + | 
|  | 30 | +  String message; | 
|  | 31 | + | 
|  | 32 | +  /// Returns a shallow copy of this [UserAccountRegistrationDeniedException] | 
|  | 33 | +  /// with some or all fields replaced by the given arguments. | 
|  | 34 | +  @_i1.useResult | 
|  | 35 | +  UserAccountRegistrationDeniedException copyWith({String? message}); | 
|  | 36 | +  @override | 
|  | 37 | +  Map<String, dynamic> toJson() { | 
|  | 38 | +    return {'message': message}; | 
|  | 39 | +  } | 
|  | 40 | + | 
|  | 41 | +  @override | 
|  | 42 | +  String toString() { | 
|  | 43 | +    return _i1.SerializationManager.encode(this); | 
|  | 44 | +  } | 
|  | 45 | +} | 
|  | 46 | + | 
|  | 47 | +class _UserAccountRegistrationDeniedExceptionImpl | 
|  | 48 | +    extends UserAccountRegistrationDeniedException { | 
|  | 49 | +  _UserAccountRegistrationDeniedExceptionImpl({required String message}) | 
|  | 50 | +      : super._(message: message); | 
|  | 51 | + | 
|  | 52 | +  /// Returns a shallow copy of this [UserAccountRegistrationDeniedException] | 
|  | 53 | +  /// with some or all fields replaced by the given arguments. | 
|  | 54 | +  @_i1.useResult | 
|  | 55 | +  @override | 
|  | 56 | +  UserAccountRegistrationDeniedException copyWith({String? message}) { | 
|  | 57 | +    return UserAccountRegistrationDeniedException( | 
|  | 58 | +        message: message ?? this.message); | 
|  | 59 | +  } | 
|  | 60 | +} | 
0 commit comments