fromJSON static method

PartnershipStatus fromJSON(
  1. String data
)

Implementation

static PartnershipStatus fromJSON(String data) {
	switch (data) {
		case "active":
			return PartnershipStatus.active;
		case "complicated":
			return PartnershipStatus.complicated;
		case "past":
			return PartnershipStatus.past;
		default:
			throw ArgumentError('Invalid PartnershipStatus entry value $data');
		}
}