toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final data = <String, Object?>{};
  if (keyType != null) data['keyType'] = keyType;
  if (publicKey != null) data['publicKey'] = publicKey;
  return data;
}