schultek / dart_mappable

Improved json serialization and data classes with full support for generics, inheritance, customization and more.
https://pub.dev/packages/dart_mappable
MIT License
135 stars 20 forks source link

copyWith not generating #205

Closed lukepighetti closed 2 weeks ago

lukepighetti commented 2 weeks ago
// This file is "model.dart"
import 'package:dart_mappable/dart_mappable.dart';

// Will be generated by dart_mappable
part 'search_result_response.mapper.dart';

@MappableClass()
class SearchResultResponse {
  final SearchResult results;

  SearchResultResponse(this.results);
}

@MappableClass()
class SearchResult {
  final String artworkUrl100;

  SearchResult(
    this.artworkUrl100,
  );
}
Screenshot 2024-06-18 at 3 36 43 PM
lukepighetti commented 2 weeks ago

Oops, was missing the mixins. Thanks!