We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For given ExampleClass which extends Equatable as below:
@Dto() class ExampleClass extends Equatable { final String field1; final int field2; const ExampleClass({ required this.field1, required this.field2, }); @override List<Object> get props => [field1, field2]; }
generator tries to map props in toDomain and toDto methods.
props
toDomain
toDto
extension ExampleClassDtoToExampleClass on ExampleClassDto { ExampleClass toDomain() => ExampleClass( field1: field1, field2: field2, props: props.map((e) => e).toList(growable: false), ); } extension ExampleClassToExampleClassDto on ExampleClass { ExampleClassDto toDto() => ExampleClassDto( field1: field1, field2: field2, props: props.map((e) => e).toList(growable: false), ); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For given ExampleClass which extends Equatable as below:
generator tries to map
props
intoDomain
andtoDto
methods.The text was updated successfully, but these errors were encountered: