example static method

Map<String, Object?> example(
  1. String type
)

The canonical example for type (mission, evidence, checkpoint, receipt); fresh deep copies every call.

Implementation

static Map<String, Object?> example(String type) {
  final map = switch (type) {
    'mission' => _mission(),
    'evidence' => _evidence(),
    'checkpoint' => _checkpoint(),
    'receipt' => _receipt(),
    _ => throw ArgumentError.value(
      type,
      'type',
      'no golden example (expected mission|evidence|'
          'checkpoint|receipt)',
    ),
  };
  // Deep copy via JSON round-trip: callers may mutate freely.
  return (jsonDecode(jsonEncode(map)) as Map).cast<String, Object?>();
}