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
164 stars 23 forks source link

copyWith not generating #205

Closed lukepighetti closed 5 months ago

lukepighetti commented 5 months 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 5 months ago

Oops, was missing the mixins. Thanks!