""" Options: Date: 2024-12-22 21:20:05 Version: 8.51 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: HelloAllTypes.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SubType: id: int = 0 name: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class AllTypes(IGet): id: int = 0 nullable_id: Optional[int] = None byte: int = 0 short: int = 0 int_: int = field(metadata=config(field_name='int'), default=0) long: int = 0 u_short: int = 0 u_int: int = 0 u_long: int = 0 float_: float = field(metadata=config(field_name='float'), default=0.0) double: float = 0.0 decimal: Decimal = decimal.Decimal(0) string: Optional[str] = None date_time: datetime.datetime = datetime.datetime(1, 1, 1) time_span: datetime.timedelta = datetime.timedelta() date_time_offset: datetime.datetime = datetime.datetime(1, 1, 1) guid: Optional[str] = None char: Optional[str] = None key_value_pair: Optional[KeyValuePair[str, str]] = None nullable_date_time: Optional[datetime.datetime] = None nullable_time_span: Optional[datetime.timedelta] = None string_list: List[str] = field(default_factory=list) string_array: List[str] = field(default_factory=list) string_map: Dict[str, str] = field(default_factory=dict) int_string_map: Dict[int, str] = field(default_factory=dict) sub_type: Optional[SubType] = None point: Optional[str] = None original_name: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class Poco: name: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class AllCollectionTypes: int_array: List[int] = field(default_factory=list) int_list: List[int] = field(default_factory=list) string_array: List[str] = field(default_factory=list) string_list: List[str] = field(default_factory=list) poco_array: List[Poco] = field(default_factory=list) poco_list: List[Poco] = field(default_factory=list) nullable_byte_array: List[Optional[int]] = field(default_factory=list) nullable_byte_list: List[int] = field(default_factory=list) nullable_date_time_array: List[Optional[datetime.datetime]] = field(default_factory=list) nullable_date_time_list: List[datetime.datetime] = field(default_factory=list) poco_lookup: Dict[str, List[Poco]] = field(default_factory=dict) poco_lookup_map: Dict[str, List[Dict[str, Poco]]] = field(default_factory=dict) @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class HelloAllTypesResponse: result: Optional[str] = None all_types: Optional[AllTypes] = None all_collection_types: Optional[AllCollectionTypes] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class HelloAllTypes(IReturn[HelloAllTypesResponse]): name: Optional[str] = None all_types: Optional[AllTypes] = None all_collection_types: Optional[AllCollectionTypes] = None