toMapOrBool static method
Implementation
static dynamic toMapOrBool(Attribution attribution) {
return switch (attribution) {
AttributionOptions() => attribution.toMap(),
AttributionEnabled() => true,
AttributionDisabled() => false,
Type() => throw UnimplementedError(),
};
}