This repository was archived by the owner on Jun 16, 2026. It is now read-only.
This repository was archived by the owner on Jun 16, 2026. It is now read-only.
User and Breadcrumb data classes from a Map #59
Often Hybrid SDKs have to create data classes out of a Map, See:
https://github.com/getsentry/sentry-dart/blob/b8b9b7b2608c35e4a3f7340ae9d2f0e9c06d984f/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterPlugin.kt#L272-L286
This code is repeated for Android and iOS, on Flutter, RN, and others.
Ideally, Android and iOS would expose extension methods for this, such as:
User.fromMap(Map<String, Any> user).Breadcrumb.fromMap(Map<String, Any> crumb).