passo_mobile_app/lib/model/utils/position.dart

19 lines
344 B
Dart
Raw Normal View History

2023-02-20 07:48:24 +00:00
class Position {
Position({
this.id,
this.title,
});
final int? id;
final String? title;
factory Position.fromJson(Map<String, dynamic> json) => Position(
id: json["id"],
title: json["title"],
);
Map<String, dynamic> toJson() => {
"id": id,
"title": title,
};
}