You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
375 B
21 lines
375 B
3 years ago
|
import 'package:json_annotation/json_annotation.dart';
|
||
|
import 'package:equatable/equatable.dart';
|
||
|
|
||
|
part 'test.g.dart';
|
||
|
|
||
|
@JsonSerializable()
|
||
|
class Test extends Equatable {
|
||
|
final int id;
|
||
|
|
||
|
factory Test.fromJson(Map<String, dynamic> json) => _$TestFromJson(json);
|
||
|
|
||
|
@override
|
||
|
List<Object?> get props => [
|
||
|
id,
|
||
|
];
|
||
|
|
||
|
const Test({
|
||
|
required this.id,
|
||
|
});
|
||
|
}
|