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.
pharmacy/lib/models/getdeliveryboy_model.dart

30 lines
794 B

11 months ago
import 'package:flutter/material.dart';
class GetDeliveryboyDetailsModel {
String deliveryboy_name = '';
String deliveryboy_phone = '';
String deliveryboy_alternativeContactNumber = '';
String deliveryboy_address='';
// String deliveryboy_status='';
Color cardColor=Colors.white;
GetDeliveryboyDetailsModel();
factory GetDeliveryboyDetailsModel.fromJson(Map<String, dynamic> json){
GetDeliveryboyDetailsModel rtvm = new GetDeliveryboyDetailsModel();
rtvm.deliveryboy_name = json['name'] ?? '';
rtvm.deliveryboy_phone = json['phone'] ?? '';
rtvm.deliveryboy_alternativeContactNumber = json['alternativeContactNumber'] ?? '';
rtvm.deliveryboy_address = json['address'] ??'';
// rtvm.deliveryboy_status = json['status'] ??'';
return rtvm;
}
}