AdministrationQuantity.fromJSON constructor

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

Implementation

factory AdministrationQuantity.fromJSON(Map<String, dynamic> data) {
	return AdministrationQuantity(
		quantity: (data["quantity"] as num?)?.toDouble(),
		administrationUnit: data["administrationUnit"] == null ? null : CodeStub.fromJSON(data["administrationUnit"]),
		unit: (data["unit"] as String?)
	);
}