/* Options: Date: 2024-05-12 13:01:10 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: HelloWithInheritance.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; abstract class HelloBase { int? id; HelloBase({this.id}); HelloBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; getTypeName() => "HelloBase"; TypeContext? context = _ctx; } abstract class HelloResponseBase { int? refId; HelloResponseBase({this.refId}); HelloResponseBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { refId = json['refId']; return this; } Map toJson() => { 'refId': refId }; getTypeName() => "HelloResponseBase"; TypeContext? context = _ctx; } class HelloWithInheritanceResponse extends HelloResponseBase implements IConvertible { String? result; HelloWithInheritanceResponse({this.result}); HelloWithInheritanceResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); result = json['result']; return this; } Map toJson() => super.toJson()..addAll({ 'result': result }); getTypeName() => "HelloWithInheritanceResponse"; TypeContext? context = _ctx; } class HelloWithInheritance extends HelloBase implements IReturn, IConvertible, IPost { String? name; HelloWithInheritance({this.name}); HelloWithInheritance.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); name = json['name']; return this; } Map toJson() => super.toJson()..addAll({ 'name': name }); createResponse() => HelloWithInheritanceResponse(); getResponseTypeName() => "HelloWithInheritanceResponse"; getTypeName() => "HelloWithInheritance"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'HelloBase': TypeInfo(TypeOf.AbstractClass), 'HelloResponseBase': TypeInfo(TypeOf.AbstractClass), 'HelloWithInheritanceResponse': TypeInfo(TypeOf.Class, create:() => HelloWithInheritanceResponse()), 'HelloWithInheritance': TypeInfo(TypeOf.Class, create:() => HelloWithInheritance()), });