platform/angel_orm_generator/test/models/leg.g.dart

60 lines
1.3 KiB
Dart
Raw Normal View History

2018-08-24 13:42:09 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of angel_orm_generator.test.models.leg;
// **************************************************************************
// JsonModelGenerator
// **************************************************************************
@generatedSerializable
class Leg extends _Leg {
Leg({this.id, this.foot, this.name, this.createdAt, this.updatedAt});
@override
final String id;
@override
2018-12-03 13:41:14 +00:00
final Foot foot;
2018-08-24 13:42:09 +00:00
@override
final String name;
@override
final DateTime createdAt;
@override
final DateTime updatedAt;
Leg copyWith(
{String id,
2018-12-03 13:41:14 +00:00
Foot foot,
2018-08-24 13:42:09 +00:00
String name,
DateTime createdAt,
DateTime updatedAt}) {
return new Leg(
id: id ?? this.id,
foot: foot ?? this.foot,
name: name ?? this.name,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt);
}
bool operator ==(other) {
return other is _Leg &&
other.id == id &&
other.foot == foot &&
other.name == name &&
other.createdAt == createdAt &&
other.updatedAt == updatedAt;
}
2018-12-01 19:03:43 +00:00
@override
int get hashCode {
return hashObjects([id, foot, name, createdAt, updatedAt]);
}
2018-08-24 13:42:09 +00:00
Map<String, dynamic> toJson() {
return LegSerializer.toMap(this);
}
}