ProjectFeature.fromJson constructor
Implementation
factory ProjectFeature.fromJson(Map<String, Object?> json) {
return ProjectFeature(
feature: json[r'feature'] as String?,
imageUri: json[r'imageUri'] as String?,
localisedDescription: json[r'localisedDescription'] as String?,
localisedName: json[r'localisedName'] as String?,
prerequisites: (json[r'prerequisites'] as List<Object?>?)
?.map((i) => i as String? ?? '')
.toList() ??
[],
projectId: (json[r'projectId'] as num?)?.toInt(),
state: json[r'state'] != null
? ProjectFeatureStateEnum.fromValue(json[r'state']! as String)
: null,
toggleLocked: json[r'toggleLocked'] as bool? ?? false,
);
}