MembershipsDetails.fromJson constructor
MembershipsDetails.fromJson(
- Map json_
Implementation
MembershipsDetails.fromJson(core.Map json_)
: this(
accessibleLevels: (json_['accessibleLevels'] as core.List?)
?.map((value) => value as core.String)
.toList(),
highestAccessibleLevel: json_['highestAccessibleLevel'] as core.String?,
highestAccessibleLevelDisplayName:
json_['highestAccessibleLevelDisplayName'] as core.String?,
membershipsDuration: json_.containsKey('membershipsDuration')
? MembershipsDuration.fromJson(
json_['membershipsDuration']
as core.Map<core.String, core.dynamic>,
)
: null,
membershipsDurationAtLevels:
(json_['membershipsDurationAtLevels'] as core.List?)
?.map(
(value) => MembershipsDurationAtLevel.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
);