2018-06-27 05:36:57 +00:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'with_enum.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
2018-07-11 15:45:45 +00:00
|
|
|
// JsonModelGenerator
|
2018-06-27 05:36:57 +00:00
|
|
|
// **************************************************************************
|
|
|
|
|
2018-07-11 15:45:45 +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
|
|
|
}
|
|
|
|
|
2018-11-03 07:36:59 +00:00
|
|
|
@override
|
|
|
|
int get hashCode {
|
|
|
|
return hashObjects([type, finalList]);
|
|
|
|
}
|
|
|
|
|
2018-06-27 05:36:57 +00:00
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
return WithEnumSerializer.toMap(this);
|
|
|
|
}
|
|
|
|
}
|