You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1000 B
Dart
28 lines
1000 B
Dart
|
1 year ago
|
import 'package:mc_common_app/extensions/string_extensions.dart';
|
||
|
|
import 'package:mc_common_app/models/requests_models/request_model.dart';
|
||
|
|
import 'package:mc_common_app/utils/enums.dart';
|
||
|
|
|
||
|
|
class ShippingRequestModel {
|
||
|
|
int? id;
|
||
|
|
int? requestID;
|
||
|
|
RequestModel? request;
|
||
|
|
int? shippingStatus;
|
||
|
|
ShippingRequestStatusEnum? shippingStatusEnum;
|
||
|
|
String? deliveredOn;
|
||
|
|
String? comment;
|
||
|
|
String? createdOn;
|
||
|
|
|
||
|
|
ShippingRequestModel({this.id, this.requestID, this.request, this.shippingStatus, this.deliveredOn, this.comment, this.createdOn});
|
||
|
|
|
||
|
|
ShippingRequestModel.fromJson(Map<String, dynamic> json) {
|
||
|
|
id = json['id'];
|
||
|
|
requestID = json['requestID'];
|
||
|
|
request = json['request'];
|
||
|
|
shippingStatus = json['shippingStatus'];
|
||
|
|
shippingStatusEnum = json['shippingStatus'] != null ? (json['shippingStatus'] as int).toShippingStatusEnum() : ShippingRequestStatusEnum.initiated;
|
||
|
|
deliveredOn = json['deliveredOn'];
|
||
|
|
comment = json['comment'];
|
||
|
|
createdOn = json['createdOn'];
|
||
|
|
}
|
||
|
|
}
|