encode static method

Map<String, dynamic> encode(
  1. AccessLog value
)
override

Implementation

static Map<String, dynamic> encode(AccessLog value) {
	switch (value) {
		case DecryptedAccessLog entity:
			Map<String, dynamic> entityJson = DecryptedAccessLog.encode(entity);
			entityJson["kotlinType"] = "com.icure.cardinal.sdk.model.DecryptedAccessLog";
			return entityJson;
		case EncryptedAccessLog entity:
			Map<String, dynamic> entityJson = EncryptedAccessLog.encode(entity);
			entityJson["kotlinType"] = "com.icure.cardinal.sdk.model.EncryptedAccessLog";
			return entityJson;
	}
}