1import '../../../domain/entities/req/req_create_driver_collection_entity.dart';
5 required super.collectionPoints,
12 collectionPoints: entity.collectionPoints
21 'collectionPoints': collectionPoints
24 'user': (user as UserModel).
toJson(),
30 collectionPoints: (json[
'collectionPoints'] as List)
33 user: UserModel.fromJson(json[
'user']),
49 Map<String, dynamic>
toJson() {
57 id: (json[
'id'] as num?)?.toInt() ?? 0,
79 factory
UserModel.fromJson(Map<String, dynamic> json) {
81 id: (json[
'id'] as num?)?.toInt() ?? 0,
Map< String, dynamic > toJson()
factory ReqCreateDriverCollectionModel fromJson(Map< String, dynamic > json)
const ReqCreateDriverCollectionModel({ required super.collectionPoints, required super.user, })
factory ReqCreateDriverCollectionModel fromEntity(ReqCreateDriverCollectionEntity entity)
Map< String, dynamic > toJson()
const UserModel({ required super.id, })
Map< String, dynamic > toJson()
const CollectionPointEntity({ required this.id, })
class ReqCreateDriverCollectionModel extends ReqCreateDriverCollectionEntity CollectionPointModel({ required super.id, })