Untitled

 avatar
unknown
dart
3 years ago
1.9 kB
1
Indexable

class MyRequestsRequester {
  String? userId;
  int? genderId;
  int? specialityId;
  String? details;
  double? budget;
  String? addressId;
  int? prefferedLocation;
  int? deliverType;
  int? paymentMethodId;
  String? schedulerOrderDate;
  int? status;
  int? RequestServicesCount;
  String? id;

  MyRequestsRequester(
      {this.userId,
      this.genderId,
      this.specialityId,
      this.details,
      this.budget,
      this.addressId,
      this.prefferedLocation,
      this.deliverType,
      this.paymentMethodId,
      this.schedulerOrderDate,
      this.status,
      this.RequestServicesCount,
      this.id});

  MyRequestsRequester.fromJson(Map<String, dynamic> json) {
    userId = json['userId'];
    genderId = json['genderId'];
    specialityId = json['specialityId'];
    details = json['details'];
    budget = json['budget'];
    addressId = json['addressId'];
    prefferedLocation = json['prefferedLocation'];
    deliverType = json['deliverType'];
    paymentMethodId = json['paymentMethodId'];
    schedulerOrderDate = json['schedulerOrderDate'];
    status = json['status'];
    RequestServicesCount = json['RequestServicesCount'];
    id = json['id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userId'] = this.userId;
    data['genderId'] = this.genderId;
    data['specialityId'] = this.specialityId;
    data['details'] = this.details;
    data['budget'] = this.budget;
    data['addressId'] = this.addressId;
    data['prefferedLocation'] = this.prefferedLocation;
    data['deliverType'] = this.deliverType;
    data['paymentMethodId'] = this.paymentMethodId;
    data['schedulerOrderDate'] = this.schedulerOrderDate;
    data['status'] = this.status;
    data['RequestServicesCount'] = this.RequestServicesCount;
    data['id'] = this.id;
    return data;
  }
}
Editor is loading...