platform/angel_serialize_generator/test/models/with_enum.g.dart

35 lines
908 B
Dart
Raw Normal View History

2018-06-27 05:36:57 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'with_enum.dart';
// **************************************************************************
// JsonModelGenerator
2018-06-27 05:36:57 +00:00
// **************************************************************************
@generatedSerializable
2018-06-27 05:36:57 +00:00
class WithEnum implements _WithEnum {
2018-06-27 05:45:46 +00:00
const WithEnum({this.type, List<int> this.finalList});
2018-06-27 05:36:57 +00:00
@override
final WithEnumType type;
2018-06-27 05:45:46 +00:00
@override
final List<int> finalList;
WithEnum copyWith({WithEnumType type, List<int> finalList}) {
return new WithEnum(
type: type ?? this.type, finalList: finalList ?? this.finalList);
2018-06-27 05:36:57 +00:00
}
bool operator ==(other) {
2018-06-27 05:45:46 +00:00
return other is _WithEnum &&
other.type == type &&
const ListEquality<int>(const DefaultEquality<int>())
.equals(other.finalList, finalList);
2018-06-27 05:36:57 +00:00
}
Map<String, dynamic> toJson() {
return WithEnumSerializer.toMap(this);
}
}