toMapOrBool static method

dynamic toMapOrBool(
  1. Attribution attribution
)

Implementation

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