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.

19 lines
361 B

import 'package:flutter/material.dart';
class MedicinesDataModel {
String medicine_name = '';
int id = 0;
MedicinesDataModel();
factory MedicinesDataModel.fromJson(Map<String, dynamic> json){
MedicinesDataModel rtvm = new MedicinesDataModel();
rtvm.medicine_name = json['name'] ?? '';
rtvm.id = json['Id'] ?? 0;
return rtvm;
}
}