Partnership.fromJSON constructor

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

Implementation

factory Partnership.fromJSON(Map<String, dynamic> data) {
	return Partnership(
		type: data["type"] == null ? null : PartnershipType.fromJSON(data["type"]),
		status: data["status"] == null ? null : PartnershipStatus.fromJSON(data["status"]),
		partnerId: (data["partnerId"] as String?),
		meToOtherRelationshipDescription: (data["meToOtherRelationshipDescription"] as String?),
		otherToMeRelationshipDescription: (data["otherToMeRelationshipDescription"] as String?)
	);
}