ReferralPeriod.fromJSON constructor
Implementation
factory ReferralPeriod.fromJSON(Map<String, dynamic> data) {
return ReferralPeriod(
startDate: data["startDate"] == null ? null : DateTime.fromMillisecondsSinceEpoch(data["startDate"] as int),
endDate: data["endDate"] == null ? null : DateTime.fromMillisecondsSinceEpoch(data["endDate"] as int),
comment: (data["comment"] as String?)
);
}