AvailableContentStates.fromJson constructor
Implementation
factory AvailableContentStates.fromJson(Map<String, Object?> json) {
return AvailableContentStates(
spaceContentStates: (json[r'spaceContentStates'] as List<Object?>?)
?.map((i) =>
ContentState.fromJson(i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
customContentStates: (json[r'customContentStates'] as List<Object?>?)
?.map((i) =>
ContentState.fromJson(i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
);
}