Mother.fromJson constructor

Mother.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Mother.fromJson(Map<String, dynamic> json) {
  name = json['name'];
  age = json['age'];
  lmp = DateTime.tryParse(json['lmp'] ?? '');
  deviceId = json['deviceId'];
  deviceName = json['deviceName'];
  type = json['type'];
  noOfTests = json['noOfTests'];
  deviceName = json['deviceName'];
}