SpaceSettings.fromJson constructor

SpaceSettings.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory SpaceSettings.fromJson(Map<String, Object?> json) {
  return SpaceSettings(
    routeOverrideEnabled: json[r'routeOverrideEnabled'] as bool? ?? false,
    editor: json[r'editor'] != null
        ? SpaceSettingsEditor.fromJson(
            json[r'editor']! as Map<String, Object?>)
        : null,
    spaceKey: json[r'spaceKey'] as String?,
    links: GenericLinks.fromJson(
        json[r'_links'] as Map<String, Object?>? ?? const {}),
  );
}