ApplicationRole.fromJson constructor
Implementation
factory ApplicationRole.fromJson(Map<String, Object?> json) {
return ApplicationRole(
defaultGroups: (json[r'defaultGroups'] as List<Object?>?)
?.map((i) => i as String? ?? '')
.toList() ??
[],
defaultGroupsDetails: (json[r'defaultGroupsDetails'] as List<Object?>?)
?.map((i) =>
GroupName.fromJson(i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
defined: json[r'defined'] as bool? ?? false,
groupDetails: (json[r'groupDetails'] as List<Object?>?)
?.map((i) =>
GroupName.fromJson(i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
groups: (json[r'groups'] as List<Object?>?)
?.map((i) => i as String? ?? '')
.toList() ??
[],
hasUnlimitedSeats: json[r'hasUnlimitedSeats'] as bool? ?? false,
key: json[r'key'] as String?,
name: json[r'name'] as String?,
numberOfSeats: (json[r'numberOfSeats'] as num?)?.toInt(),
platform: json[r'platform'] as bool? ?? false,
remainingSeats: (json[r'remainingSeats'] as num?)?.toInt(),
selectedByDefault: json[r'selectedByDefault'] as bool? ?? false,
userCount: (json[r'userCount'] as num?)?.toInt(),
userCountDescription: json[r'userCountDescription'] as String?,
);
}