MembershipList.fromMap constructor

MembershipList.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory MembershipList.fromMap(Map<String, dynamic> map) {
  return MembershipList(
    total: map['total'],
    memberships: List<Membership>.from(
        map['memberships'].map((p) => Membership.fromMap(p))),
  );
}