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