toMap method

Map<String, dynamic> toMap({
  1. required String apiKey,
  2. required String endpoint,
})

Serialized form sent over the platform channel to the Kotlin/Swift side. Keys mirror the receiving SankofaDeployPlugin.kt parameter names exactly. signingPubkeyB64 is NOT forwarded — the Dart side is the only consumer (envelope verification happens before bytes hit the platform plugin).

Implementation

Map<String, dynamic> toMap({required String apiKey, required String endpoint}) => {
      'apiKey': apiKey,
      'endpoint': endpoint,
      'appReadyTimeoutMs': appReadyTimeout.inMilliseconds,
      'autoCheckOnStartup': autoCheckOnStartup,
      // The Android plugin's handshake + nativeInit otherwise fall back
      // to a compile-time baseline constant — which mis-gates the
      // server's engine_version release filter the moment the app runs
      // a newer engine than the constant.
      if (engineVersion != null) 'engineVersion': engineVersion,
    };