Renewal.fromJSON constructor

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

Implementation

factory Renewal.fromJSON(Map<String, dynamic> data) {
	return Renewal(
		decimal: (data["decimal"] as int?),
		duration: data["duration"] == null ? null : Duration.fromJSON(data["duration"])
	);
}