Map<String, Object?> toJson() => { 'available': available.map((k, v) => MapEntry(k, v.name)), 'default': default$, };