toJson method

Map<String, Object?> toJson()

The value stored at metadata.keyPackage — the payload only. enrollmentId / apkamId are carried by the enclosing verb structure (the enrollment and its APKAM-keypair entry), not repeated here.

Implementation

Map<String, Object?> toJson() => {
      'v': v,
      'createdAt': createdAt.toUtc().toIso8601String(),
      'keys': keys.map((k) => k.toJson()).toList(),
    };