ReferralPeriod.fromJSON constructor

ReferralPeriod.fromJSON(
  1. Map<String, dynamic> data
)

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?)
	);
}