encode static method

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

Implementation

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