content: /* AUTOMATICALLY GENERATED CODE DO NOT MODIFY */
  /*   To generate run: "serverpod generate"    */
  
  // ignore_for_file: implementation_imports
  // ignore_for_file: library_private_types_in_public_api
  // ignore_for_file: non_constant_identifier_names
  // ignore_for_file: public_member_api_docs
  // ignore_for_file: type_literal_in_constant_pattern
  // ignore_for_file: use_super_parameters
  
  // ignore_for_file: no_leading_underscores_for_library_prefixes
  import 'package:serverpod_client/serverpod_client.dart' as _i1;
  
  abstract class Example implements _i1.SerializableModel {
    Example._({
      required this.name,
      required this.data,
    });
  
    factory Example({
      required String name,
      required int data,
    }) = _ExampleImpl;
  
    factory Example.fromJson(Map<String, dynamic> jsonSerialization) {
      return Example(
        name: jsonSerialization['name'] as String,
        data: jsonSerialization['data'] as int,
      );
    }
  
    String name;
  
    int data;
  
    Example copyWith({
      String? name,
      int? data,
    });
    @override
    Map<String, dynamic> toJson() {
      return {
        'name': name,
        'data': data,
      };
    }
  
    @override
    String toString() {
      return _i1.SerializationManager.encode(this);
    }
  }
  
  class _ExampleImpl extends Example {
    _ExampleImpl({
      required String name,
      required int data,
    }) : super._(
            name: name,
            data: data,
          );
  
    @override
    Example copyWith({
      String? name,
      int? data,
    }) {
      return Example(
        name: name ?? this.name,
        data: data ?? this.data,
      );
    }
  }
  